modified the way cacheSolve() functions after makeCacheMatrix has changed