Zuo/inv

Two new toutines inv and lu.