Used to shuffle lists using Generics