Structured permutations for determining an algorithm to sort ships that will use Duluth Canal