Update Traversals.java

Changed variable names in method 3
Merge pull request #3 from fhheaney/patch-3

Update Traversals.java