A selector function takes a DHT key and a list of records and returns the index of the best record in the list

interface SelectFn ((key, records) => number)