Implementing makeCacheMatrix and cacheSolve