First attempt at cachematrix.R exercise.

First attemp t