Nearest prototype strategy