swapCol() is done in main function