A negative `maxDistance` should result in no matches, as it's impossible for the distance between any two elements to be negative. I'll add a test case.