Sorting Algorithm With Minimum Swaps Required