Functions makeCacheMatrix and cacheSolve implemented.