Added some new methods to Environment

added some methods to environment to insert in alphabetical order and to
quickly search a sorted list of strings for an entity