Added an optional argument to select initial length of the first sud-code