Delvepped by chenlb2008@gmail.com (http://code.google.com/p/mmseg4j).