Added cartesian tree with explicit keys, can be used as a balanced binary search tree