Implement cachematrix features.