When N is 2, each object can be swapped into the correct bucket by using the Dutch national flag algorithm.
Kada je N 2, svaki objekat može biti zamenjen odgovarajućim segmentom, koristeci algoritam holandke nacionalne zastave.