`cachematrix` implemented