Generic RMQ added.
Modified "compareUtil" function in RMQ.

This has been done because non-const references cannot be assigned a value. ( 0 in this case.)
Using the Generic RMQ for Range Max Queries.

Performing RMQ over an array of Integers.