Make Egyptian fractions a little more robust.

Add checking for negative arguments, and arguments > 1

Don't know if this is actually needed; it does help avoid endless loops if you give an improper fraction to some of the algorithms.  Feel free to reject.
use sorted, like other functions