prepareSGP now returns ALL duplicates instead of just the index of the duplicates