Non-Recursive Approach for Reconstructing a Binary Tree