Calculation of the next pivot step