http://haarts.tumblr.com/post/16015091140/cdist-the-setup
http://d.hatena.ne.jp/kinneko/20120111/p26