fixes to HMat
Merge branch 'master' of https://github.com/BIDData/BIDMat