I'm not sure if it's right but the issue is where do you want your main power band(torque cures) i know there is more of a science to it and i know a fair amount.
but the basics are: longer for more low down power. smaller diamiter again for lower down. and where you connect both down pipes (of corse more important with more cylenders) again more distance away from the valves more lower down power.( of corse opposie to what i have said is for higher power)
the same sort of principles are true with the inlet which is very important to get set up as well for natrally aspirated engines and as you may have probbably worked out is the inlet seriously effects the design of the exhaust for maximum efficiancy where you want the power.
There is alot more i would like to talk about but its one of those talk in person subjects but i have put the basics down.
Mike