Function makeCacheMatrix implemented