added inverse function
added test for inverse matrix