Restructured SymbolTable class using a nested HashMap and refactored the
related code.