Hello Lee Mac.
I see, you very much liked the task.
I hope, you will receive a lot of pleasure from the topic decision.
For reception of the best results, I have written two programs - the first for the first list, the second for the second...
My way, laid through genetic algorithm.
At first, I ordered the list. After, I repeatedly improved it, using small shifts.