preliminary speedup with gpu histogram