Added secondary binary method that uses a stack instead of recursion