Update cachematrix.R

Fixed some typos and expanded comments around what the code is doing.