Update cachematrix.R

This is my solution for the assignment: Caching the Inverse of a Matrix.
Corrected some typos.