TO using tree algorithm
Pretty latencies