Histogram Backprojection Implementation