Implementing functions for matrix inversion/caching
Add comments