writing dht segment
improved max length tree