Implement partitionWithKey.
Implement partition.
Bring forceTuple to top level.

Also rename 'forceTuple (a,_,b)' to forceTriple.
Merge pull request #44 from archblob/partition

Implement partitionWithKey and partition.