minimum depth of binary tree breadth first search