vast improvements in site rate calc

* stopped the unnecessary calculation of invariant sites
* fixed the “nan” problem with empty subsets