add solution to range minimum query