Used custom back_insertion_iterator, added table generation.