Java version of the k-d partitioning entropy estimation