Create detector.py

Adding similarity detection script