minimum depth of binary tree, breadth-first approach.