add merge intervals.java