https://en.wikipedia.org/wiki/Minimax
https://en.wikipedia.org/wiki/Min-max_heap
Reply on news.ycombinator.com