"Modified cachematrix function"