Finally get around to adding two recursive find_dupes implementations

One's less efficient, the other is tail recursive.