Working version of preorder visitor

Working version of the preorder visitor. the print could be evolved in just a line, and the different versions of visitor (inorder, post order) could be written)