add interval tree api