Karp's Brute Force Partition (Better)