Merge pull request #1 from UTD-CS2336-TreeSearch/master

Merging
printToFile updated

Updated the printToFile method.