Create cachematrix.R

Edited cachematrix.R fiel for peer review.