Add implementations for makeCacheMatrix and cacheSolve functions