Code for makeCacheMatrix and cacheSolve