Fix ID mapping from Vertex-ID to RTree Entry ID (use FixedDBIDsFilter); Sort refpointDistances by Vertex-ID prior to writing to CSV + Replace LinkedHashMap by HashMap