Heuristic selection of number of histogram bins.