added raw-pointer mergeLabels variant for testing purposes