--- from: http://rosettacode.org/wiki/Next_highest_int_from_digits