Modify code to use atomicAdd for histogram filling. Also correct a (small) bug in checkHisto.cpp