add test case for tree
implement interval container