adding two cpp program to calculate the entropy based on calcHist