Update cachematrix.R

First fully-functional prototype with debug messages