Efficient Binary Search Tree Implementation without recursion in java