changed makeCacheMatrix and cacheSolve for assignment2