classify_for_multiple_k initially made the assumption that init_distance() was called somewhere else, which was a bug. As you can see I've added that here, and was going to use a warning instead. For now, it is just a debug message, but I really think there should be a warning.