I\'m coding a recursive 3-way partitioning in C++, but I don\'t see what\'s wrong here. (It is 97% of the time correct, sometimes incorrect. That\'s making