in matching histograms, allow not only prefix matching, but also suffix matching via wildcards