Optimal Merging in Quantum $$k$$-xor and k-sum Algorithms (Lecture notes in computer science)