Added a printout algorithm to debug the binary tree code