reverting to performant sparse matrices
Merge branch 'master' into HEAD
fixed performance bug