Assigning elements to zones