Cartesian trees (mix of heap, tree and ProbabilityTheory) 2010 https://habr.com/en/post/101818/