added 3 methods of depth-first traversal
tests for all methods of traversal