How to extract a small tree