My cachematrix version

Here is my version of the cachematrix