Normalized Histogram-based similarity check added. Some common stuff factored out into new superclass.