edit cachematrix by adding my code