Created cachematrix.R

First attempt at the code.
Version 2

Not for submission, but a tidier more “object-oriented” version, with a
self-contained getinverse method.