Dutch National Flag Sorting algo