Added some rank tests
Fixed exception (issue #106)
Added some tests for matrix inverting and fixed type of exception in zero determinant matrices invertion (issues #102 #106)