Code for partitionAll, was unable to to partition after value "6" in test.c