Adding functions

Functions added to create matrix and cache its inverse.