Project Euler #71 Ordered fractions ref: http://qiita.com/items/26fd9454c4908f762963