fixes to GPU sorts
Merge branch 'master' of https://github.com/jcanny/BIDMat