adding binary index tree