Create Element occuring 'n' times in array