implemented makeCacheMatrix and cacheSolve for caching matrix inverse