added more documentation for the cachematrix.R function