wrote the makeCacheMatrix and cacheSolve functions