Add an iterative solution to validate binary search tree.