implement functions

implement functions of makeCacheMatrix and cacheSolve