D-histogram