add simple entropy check

Note: cpp entropy function currently gives variance of the scores for error estimate, rather than variance of the estimator.