disjoint_ranges For given set of intervals finds a (almost minimal) set of "binary" intervals that cover the rest of the space scalas Main.scala scala Main