non-recursive, Warnsdorff's rule version of Task 11
recursive version Task 11