combinatorics/permutations: Made the code of to_cycles a bit more readable.
combinatorics/permutations: Made the code of to_cycles a bit more
readable.

Signed-off-by: Saptarshi Mandal <13ec3c7bab52575f3a0cda6406c76269cc13b041@gmail.com>

hargup/sympy,kevalds51/sympy,jaimahajan1997/sympy,amitjamadagni/sympy,meghana1995/sympy,pbrady/sympy,oliverlee/sympy,ahhda/sympy,VaibhavAgarwalVA/sympy,drufat/sympy,hrashk/sympy,cswiercz/sympy,mafiya69/sympy,meghana1995/sympy,saurabhjn76/sympy,pandeyadarsh/sympy,postvakje/sympy,MechCoder/sympy,kaichogami/sympy,ahhda/sympy,pandeyadarsh/sympy,kumarkrishna/sympy,Vishluck/sympy,shipci/sympy,kaushik94/sympy,chaffra/sympy,iamutkarshtiwari/sympy,Arafatk/sympy,abhiii5459/sympy,skidzo/sympy,sampadsaha5/sympy,asm666/sympy,sunny94/temp,souravsingh/sympy,madan96/sympy,grevutiu-gabriel/sympy,Mitchkoens/sympy,sahmed95/sympy,sampadsaha5/sympy,atreyv/sympy,sahmed95/sympy,sahmed95/sympy,cccfran/sympy,iamutkarshtiwari/sympy,jaimahajan1997/sympy,jbbskinny/sympy,vipulroxx/sympy,moble/sympy,cswiercz/sympy,yashsharan/sympy,Titan-C/sympy,AkademieOlympia/sympy,dqnykamp/sympy,lidavidm/sympy,ahhda/sympy,bukzor/sympy,atsao72/sympy,wyom/sympy,atreyv/sympy,srjoglekar246/sympy,shikil/sympy,beni55/sympy,MridulS/sympy,Curious72/sympy,sahilshekhawat/sympy,hargup/sympy,ChristinaZografou/sympy,MridulS/sympy,emon10005/sympy,hrashk/sympy,kaushik94/sympy,kevalds51/sympy,Sumith1896/sympy,toolforger/sympy,yashsharan/sympy,yashsharan/sympy,shipci/sympy,Sumith1896/sympy,jerli/sympy,abloomston/sympy,ChristinaZografou/sympy,chaffra/sympy,jerli/sympy,mcdaniel67/sympy,Arafatk/sympy,Gadal/sympy,farhaanbukhsh/sympy,kmacinnis/sympy,drufat/sympy,beni55/sympy,kaichogami/sympy,lindsayad/sympy,amitjamadagni/sympy,skirpichev/omg,skidzo/sympy,postvakje/sympy,atsao72/sympy,maniteja123/sympy,Mitchkoens/sympy,cccfran/sympy,AunShiLord/sympy,lindsayad/sympy,garvitr/sympy,pandeyadarsh/sympy,atsao72/sympy,mafiya69/sympy,moble/sympy,cswiercz/sympy,liangjiaxing/sympy,kaushik94/sympy,jamesblunt/sympy,chaffra/sympy,postvakje/sympy,jerli/sympy,lindsayad/sympy,wyom/sympy,ga7g08/sympy,yukoba/sympy,Designist/sympy,Gadal/sympy,debugger22/sympy,emon10005/sympy,MridulS/sympy,abhiii5459/sympy,AkademieOlympia/sympy,mcdaniel67/sympy,Vishluck/sympy,wanglongqi/sympy,grevutiu-gabriel/sympy,bukzor/sympy,sunny94/temp,AunShiLord/sympy,madan96/sympy,oliverlee/sympy,sahilshekhawat/sympy,aktech/sympy,Curious72/sympy,Shaswat27/sympy,debugger22/sympy,saurabhjn76/sympy,rahuldan/sympy,grevutiu-gabriel/sympy,mafiya69/sympy,kmacinnis/sympy,diofant/diofant,toolforger/sympy,Shaswat27/sympy,jaimahajan1997/sympy,yukoba/sympy,farhaanbukhsh/sympy,Gadal/sympy,jamesblunt/sympy,vipulroxx/sympy,kaichogami/sympy,beni55/sympy,shikil/sympy,toolforger/sympy,Vishluck/sympy,kevalds51/sympy,souravsingh/sympy,liangjiaxing/sympy,jamesblunt/sympy,vipulroxx/sympy,garvitr/sympy,hargup/sympy,debugger22/sympy,MechCoder/sympy,ChristinaZografou/sympy,ga7g08/sympy,maniteja123/sympy,Davidjohnwilson/sympy,mcdaniel67/sympy,abloomston/sympy,jbbskinny/sympy,wyom/sympy,kumarkrishna/sympy,Titan-C/sympy,hrashk/sympy,rahuldan/sympy,iamutkarshtiwari/sympy,saurabhjn76/sympy,cccfran/sympy,Shaswat27/sympy,maniteja123/sympy,Designist/sympy,ga7g08/sympy,skidzo/sympy,yukoba/sympy,meghana1995/sympy,aktech/sympy,asm666/sympy,moble/sympy,bukzor/sympy,shikil/sympy,wanglongqi/sympy,pbrady/sympy,Davidjohnwilson/sympy,rahuldan/sympy,AkademieOlympia/sympy,pbrady/sympy,dqnykamp/sympy,abloomston/sympy,kumarkrishna/sympy,aktech/sympy,wanglongqi/sympy,AunShiLord/sympy,Designist/sympy,farhaanbukhsh/sympy,sahilshekhawat/sympy,sampadsaha5/sympy,drufat/sympy,madan96/sympy,Arafatk/sympy,Davidjohnwilson/sympy,souravsingh/sympy,garvitr/sympy,lidavidm/sympy,asm666/sympy,liangjiaxing/sympy,Curious72/sympy,shipci/sympy,dqnykamp/sympy,flacjacket/sympy,atreyv/sympy,lidavidm/sympy,Titan-C/sympy,oliverlee/sympy,sunny94/temp,kmacinnis/sympy,abhiii5459/sympy,Mitchkoens/sympy,VaibhavAgarwalVA/sympy,MechCoder/sympy,VaibhavAgarwalVA/sympy,jbbskinny/sympy,emon10005/sympy,Sumith1896/sympy