cachematrix.R - add function bodies and comments