rm check for n > m
Merge branch 'master' into dense