Refactoring.
Refactored SymbolTable type to be more efficient. Fixes #1