Extending the k-nearest-neighbor classification algorithm to symbolic objects