add swap sort method