inverse matrix code added for Programming Assignment 2