Satradix: replace global_id by local_id in histogram and scatter krnls