Create compareDetector.cpp