Stern-Brocot fraction generator