optimized code using permutations in array form; added order method
optimized code using permutations in array form; added order method

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