add merge intervals solution