implemented makeCacheMatrix() and cacheSolve()