OK, got it now... it was solving for a different (and more onerous) problem than I saw. However, the original question did say '
whatever elements' (his bolding, not mine)....., so perhaps a more formal definition of 'unique' and 'whatever' is needed.
-Blake