The second step works as follows . As long as there are three or more wires with the same weight add a following layer :
The following step works as follows : as long as there are three or more wires with the same weight , add a second shift :