assignment due 8/4, 1NN. Comments are in the file.

later on you pass factors into distance. Unfortunately R cannot subtract factors. When I run this code, I receive a warning "- not meaningful for factors"