andrew's kNN implementation

Here's my kNN implementation. I'm not quite sure how to extend this to allow both categorical and numeric features. How would you quantify a categorical "distance" to relate it to the numeric distances? Maybe this is a conversation for office hours.