added other functions to makeCacheMatrix