added makefile and included table.h in main.cpp