Added functions to implement CacheMatrix

The first functions used to create CacheMatrix data structures and to
cache the inverse of matrices using CacheMatrix was included in this
commit.