Change wit c++11, Lab 1 passed the test
add check_duplicate function