added bit indexed tree