Pre-Order Traversal Implemented.