Discrete and Profinite Groups Acting on Regular Rooted Trees