Sped up tree building