Latin squares python. Simple algorithm to enumerate Latin Squares of lenght n.