Extended TraversalPath to support parsing strings, comparison and addition
Implement the hash method