Added functions operator<<() for supporting the printTree() function.
Also, a minor bug fix.