updated table.cpp

No duplicates can be added