cachematrix.R final version - useful comments added