cachematrix.R - done