Bootstrap trees and consistent S-matrices