Simple solution for knight tour problem. Slow with n>5.