Matrix inverse

Implemented two functions that calculate and cache the inverse of a
matrix