Update cachematrix.R

replaced function stubs with actual code