computing color histogram