Quickly find out if two directory trees are duplicates.