start on all-pairs histogram