added function body to makeCacheMatrix and cacheSolve