insert symbols into the symbol table in the correct place