cachematrix.R complete and rerun for knowledge