Completed makeCacheMatrix and cacheSolve function