I need to get N elements from 4 arrays. Each element taken must be put in the "chosen" array, if it takes an element already present in the chosen array I have to