fix(lp): improve the solver for rational numbers

Signed-off-by: Lev Nachmanson <levnach@microsoft.com>