With this phrase, Shakespeare makes a relation between the battle of Macdowald and King Duncan’s men, to a pair of struggling swimmers. What he is trying to do is to put the image of battle into the crowds mind. However he used the word ~cling~ to make the audience thing that the characters are miserable and desperate which has an irony to it because the two sides of  soldiers are battling against each other .