add sum and dot product function
modify toBlockMatrix method
implement matrix inverse and update test suite
Merge pull request #4 from PasaLab/master

update