wrote makeCacheMatrix and cacheSolve for the assignment