added CCV histogram algo