Partially implemented Matrix inverse method