Create cachematrix