forked from: forked from: flash on 2010-5-26

Castクラスはyd_nikuさんの
* http://wonderfl.net/c/5Nfkらへんを拝借
* Zソートは省略
