Adding in finished partitionDecreasing function