Implemented histogram closeness measure