functions makeCacheMatrix and cacheSolve for the assignment