Added support for index of coincidence of 0
Added polynomial representation of each step

i.e. for three primes:
    $g_{6} = phi_{2,p} phi_{1,q}^{2} phi_{2,l} phi_{1,l}^{3}$