Sorting Algorithm With Minimum Swaps To Make Identical Array