first version of cachematrix.R that works; strong analogy to cachemean example
completing the functions' code and adding comments