changes added the median to child nodes. All leaf nodes will have values