High Performance Histograms On Simt And Simd Architectures