Satradix: add proper histogram kernel (finished, not tested)