Basic implementation without interval tree backend to define external api and example program.