wrote functions makeCacheMatrix and cacheSolve