AC 2 dimenstion RMQ