Fully functional makeCacheMatrix and cacheSolve functions.