Implemented makeCacheSolve and cacheSolve