Modifying cachematrix.R with functions and comments