Added a histogram generator that runs on the CPU.