Update cachematrix.R

Changes. 
Documenting functions. 
Documentation of testing.