Wrote lots of documentation in cachematrix.R