Implement makeCacheMatrix and cacheSolve