added histogram example based on opencv