If several UEs are removed, the variable ue_to_be_removed may be overwritten. Let's use an array instead.