Wrote mykNN. It seems to be equally precise, but 3 times slower als R's kNN