added rmq.cpp