Non recursive Preorder traversal