rewrite vertex::search so that it has logarithmic complexity
test finding all the keys in the tree