use bisection to find elements at any depth
fix adaptivity