Solution 11/13/2014

calculating the inverse of a matrix and storing in cashe