sort_mt: implementing mt merge