implement a solution for makeCacheMatrix and cacheSolve