RMQ and LCA.