Sorting Algorithm With Minimum Swaps And K