add a clear() method to BidirectionIndex.