add implementation of makeCacheMatrix and cacheSolve