https://123dok.net/document/yevw5rv7-theoretical-analysis-cross-validation-estimating-nearest-neighbor-classifier.html