makeCacheMatrix and cacheSolve methods