Realization of the makeCacheMatrix() and cacheSolve() functions.