create cachematrix