adds exchange sort