Implement a parallel histogram algorithm.