2008-12-02 ちょいうけ etc algorithm http://depth-first.com/articles/2008/11/22/casual-saturdays-complexity