Minimum depth of binary tree.
* Minor refactoring.