swapNodes

open fun swapNodes(index1: Int, index2: Int)