1st complete version of the cachematrix.R file