Make a python function that takes time segments and combine then if they overlap, like this: [[0, 10], [8, 20], [25, 30]] => [[0, 20], [25, 30]]