added a couple of traversal functions to G
added vertex metadata, visitAll function