Add solution to merge itervals