Created PrePartition and KarmarkarKarp classes