Implement makeCacheMatrix function

Implemented the makeCacheMatrix function following in the style of the
cached vector example.