Andrei Alexandrescu describe the usage of this kind of search to speed up quicksort in his 'Fastware' (fun) video: https://www.youtube.com/watch?v=AxnotgLql0k
Discussed here: https://www.reddit.com/r/programming/comments/4jlkhv/accu_20...
Discussed here: https://www.reddit.com/r/programming/comments/4jlkhv/accu_20...
http://www.delorie.com/gnu/docs/avl/libavl_26.html