Implement makeCacheMatrix/cacheSolve