bugfix, uncontrolled memory access in quantile calulation. Copied from dev, rev48934


git-svn-id: https://root.cern.ch/svn/root/trunk@48935 27541ba8-7e3a-0410-8455-c3a389f83636