Fixed error with missing values, now assume maximum distance between two attributes if one is missing.  Probably should do something else but I'm not sure what (maybe remove the attribute from the difference calculation completely?)