fixed a little bug in root reestimation (forgot to divide by len(corpus)=f_T_q(ROOT))