makeCacheMatrix function implemented