add Megiddo1997 style linear solver