range minimum query, add 2 trivial solutions