partition, for doing a quickselect to modify the array
Merge branch 'partition'
fixes #265
Merge remote-tracking branch 'scalanlp/master' into fix265