Update to cachematrix.R

Updated comments and added code for calculations