makeCacheMatrix and cacheSolve implementation