C++/AlgoAndADT: Non-recursive version of mergeSort