final version of cachematrix