Edit cachematrix script