Implement the makeCacheMatrix and solveCache functions