try a crude dupefinder implementation