PA2 cachematrix.R change

Includes functions and test code