Parallelisation of histogram