Add some comments for the solution for better understanding of the solution to finding a minimum cost of performing sorting using limited operations.