The k-nearest neighbors algorithm in Julia