"cachematrix.R" code complete