minDepth.java