Update cachematrix.R

Add functional code to stubs