Improved the solution to the GenomicRangeQuery problem