数论:Stern-Brocot树

[Reference]Grapham, Kunth and Patashnik. Concrete Mathematics(2th edition). Chapter 4 Number Theory: 4.5 Relative Primality
Fix frac1 output bug
usaco: sort3
usaco holstein
usaco: hamming distance