Refactor DeviceMerge function into block::staged_merge.
Eliminate DeviceMergeKeysIndices function