Function cacheMatrix written

First function completed