cachematrix.R

Edited with assignment requirements