added a function to search for an identifier in the symbol table