Implement the makeCacheMatrix function