@yauheni can you prove the inequation: n.Frequency >= (n.left - n.right), then number is the median?? kind of confusing.