Implemented makeCacheMatrix()