Refactor the core functionality of WaveletMatrix into WMCore. The structure provides bidirectional mapping between the items in the original vector and the same items in the reordered vector that has been sorted stably by the reverse binary representation of the items. Mapping down means mapping from the original vector to the reordered vector, and mapping up means mapping from the reordered vector to the original vector.
Refactor the core functionality of
WaveletMatrix
intoWMCore
. The structure provides bidirectional mapping between the items in the original vector and the same items in the reordered vector that has been sorted stably by the reverse binary representation of the items. Mapping down means mapping from the original vector to the reordered vector, and mapping up means mapping from the reordered vector to the original vector.