Implemented all the functions for building symbol tables