Fixed Arithmetic Exception in LocalExtrema

	NumTasks should never be 0