cachematrix.R updated with comments