wrote cacheSolve and makeCacheMatrix functions