cachematrix.R file completed according to programming assignmnet 2 instructions