Cleaned and debug detection of the lrs program. Added a perfect_root function to determine whether a power p ^ q, where p and q are fractions,
has an exact representation as a fraction.