Improve the efficiency of Hitmap.
Improve the efficiency of CM and OCM. Remove unused codes.