Fix applyQ to not select more rows than present
pulling in the fix to applyQ to not select more rows than present
Merge branch 'master' of https://github.com/amplab/ml-matrix into fusion