Added t_rmq as template parameter