Improved tree chopping algorithm