move constructor in ternary tree, added graphs based on adjacency lists, (actually sets :)