Fixing the Pre Order Traversal