range queries, using segment trees like structure on [left, right]