A Class Of Knn–Type Entropy Estimators: Algorithm, Convergence, And Application To Molecular Modeling