Generalized vs Set Median Strings for Histogram-Based Distances: Algorithms and Classification Results in the Image Domain