HSEARCH-1499

Besides improving the DistanceCollector's memory consumption, this removes usage of `org.apache.lucene.facet.collections.IntToDoubleMap` which is no longer available in Lucene.

https://hibernate.atlassian.net/browse/HSEARCH-1499