Added two function to compute Inverse of Matrix with cache enabled