Implement makeCacheMatrix() and cacheSolve() methods