Add Ideal case for Partition algorithm
Add Ideal case for Partition algorithm