Cachematrix.R populated with required code.