fix the step num incrementing

step num wasnt changing for monotone chain algo