cachematrix.R is modified.

Comments and function bodies are added.