Improved some comments in cachematrix.R

* Clarified inspiration of the solution
* Corrected typos
* Some other improvements