# find_missing() uses a binary-tree approach # see IMPLEMENTATION section of Pod for details my $next_ID = find_missing(\@list);