Implemented the makeCacheMatrix() and cacheSolve() functions