Use min for nearest neighbour