Find Better Implementation for Dynamic CHT
If I'm not wrong, there is a good, short implementation in either RRWatameda repo or zscoder's repo