added calculation of 2d histogramm and backprojection