Update IndexTree.h

Index tree: For log n operation all around while preserving consecutive indices