Fixed the algorithm for computing the spread of the trie in newcot