version of cachematrix for ass2