Implementation of the makeCacheMatrix and cacheSolve functions.