Working swap row column mathod