Bunch generation: bunch length found from iteration --> much faster