updated cache matrix file with my function and related comments