Remove include mem.hh from symbol_manager header
Separate source code for basic functions
Rename getHash to getId
Return global value if exist