CS212: new numerical inverse algorithm