Bstard... kere is a basic formula that you might be able to use:
ID1 = inlet pipe internal diameter from cylinder head (header pipes)
ID2 = internal diameter of pipe 2 (collector)
ID3 = Internal diameter of pipe 3 (mid-pipe)
P1= Pipe length 1
P2 = Collector pipe length
P3 = Pipe to silencer length
EOP = Exhaust open in degrees befor TDC
cc= one cylinder volume in cubic centimeters
RPM = engine speed
So on to the formula:-
P1 = [(2159x(180+EOP))/RPM]-76
ID1 = [cc/((P1+7.6)x25)]-2x8.6
ID3 = [(ccx2)/(P+7.6)x25]-2x8.1
P2 = [0.5x(ID2-ID3)]x[1/TAN (wall declination angle)]
P3 = (P1+7.6)-P2
A little bit of theory now to tie things up shows that if pipe P1 has an increase in diameter then peak torque will occur higher up the rev range, if it is decreased then the reverse will occur. Decreasing the P1 length improves top end performance (power) but decreases low end performance. Whilst increasing its length does the reverse.
When the four main pipes join from the cylinder heads at P2 you need to taper P2 at an angle of between 7-10 degrees for the best performance. You also need to ensure that the pipes (P1) end abruptly i.e cut off at 90o and not finish off at an angle. You can find the length of P2 by using the formula above.
The above should work for you but as with most things in this field testing and experience can show things to be different in practice as against theory. In other words you use this information at your own risk.
I learned a few things from this book:
http://www.amazon.com/Scientific-Exhaust-Systems-Engineering-Performance/dp/0837603099