cachematrix implemented
test added