modified comparison algorithms for lists instead of files