cachematrix is written and tested