Split compare method

Previous compare method now checks for size. Another method takes care
of comparing the duplicates.