Statistical Optimality of Interpolated Nearest Neighbor Algorithms