max similarity fixed
Backup commit: clustering to be debugged