--- from: http://rosettacode.org/wiki/Stern-Brocot_sequence