Generate correct number of partitions.
Remove an extra space.
Order partitions ascending rather than descending.
Remove redundant $ operator.
Make Partition an IntMultiSet rather than [Int].