SMS dit: Likelihood inference in nearest-neighbour classification models