Added implementation for makeCacheMatrix and cacheSolve