REFACTOR Replaced loop with addAll()
Extracted method for sorting records into buckets
Changed DuplicateUtil into a abstract class
Added tests for BucketComperator
Added tests for DuplicateUtil
Added tests for ImageRecordComperator