Moved functions from Utilities to SparseMat, added some matrix-based functions
Merge branch 'Ben's-Branch'