edited cachematrix.R with code for functions and comments