wrote makeCacheMatrix and cacheSolve functions