Implement a function build_vocab(tokens) that takes a list of string tokens and returns a dictionary mapping each unique token to a unique integer ID.
The mapping must be built as follows:
If the input list is empty, return an empty dictionary.
tokens: list[str] -- a list of token strings (may contain duplicates).dict[str, int] -- mapping from each unique token to its integer ID.