Add solution to Rational Number Tree of codejam