hist2d_alloc returns hist2d struct