Update q3 computing purity and NMI