Update cachematrix.R

Added comments and made it a touch cleaner