Added local entropy estimator code.