zero crossing maximum minimum inflection point cycle start