Add solution for range-minimum-query