Add code and comment to cachematrix.R