This function computes the quasi-sequence-order for sequences.
It is for amino acid pairs with d distances (d can be any number between 1 and 20).
First, it calculates the frequencies of each amino acid ("A", "C",..., "Y").
Then, it normalizes the frequencies by dividing the frequency of an amino acid to the frequency of all amino acids
plus the sum of tau values which is multiplied by W. tau values are given by function SOCNumber.
For d bigger than 20, it computes tau for d in the range "1 to (nlag-20) * W" and normalizes them like before.