add .gitignore and testsuite for blockmatrix
fix some bugs in BlockMatrix
update test suite
Merge pull request #2 from PasaLab/master

update