Add utility function CreateJaggedArray()