Given a binary tree, write an algorithm to perform a level-order traversal and discuss how you would handle extremely deep trees.