using sparse map representation for histograms instead of dense vector representations