Implement self-similarity-based measure-finding