implemented calculation of inverse matrix
Implmented linear equation solver