modify Histogram to accept vector of edges