Implement symbol table for CPP.

Unit tests for symbol table are also added.