Implemented Depth First Search Preorder Traversal