return upper limit of histogram segment