final commit

written the cachematrix.R script and rewritten the readme