Update cachematrix.R

- Replaced mean() with solve(), renamed variables
- added comments describing behavior of the functions