Partition2gr function

Computes N-1 possible partitions of ordered N into 2 subsets.