Added Gen module for iterators, from containers/
implemented the remaining query functions for discrimination trees (not tested)