A few implementations of range minimum query algorithms in C++.