Refactors temporal closure into three methods. This allowed profiling and the identification of _to_interval_relations as the key speed problem.