Prevent expansion costs in CollectionUtil#trimDuplicates by initialising the unique noDuplicates ArrayList to the same size as the given Collection, thanks @thehutch for suggesting