intervals multiway merge