Consider making the merge non-recursive. Stack overflow >= 10000