Added ranked trees and bruteforced them.