IATree de-recursified, still improvements to do