Adding cachematrix implementations