refactor more base classes and add HLL_MERGE and HLL_MERGE_COMPUTE