Implements the core data structures of Names and Environments.