implemented functions to cache inverse matrix in cachematrix.R