Update which to adhere to the style guide.
Use a list for storing aliases and functions for improved insertion time.