Added similarities.py, the main logic file