maxRuns function

Maximum number of continuous "runs" of values meeting a particular condition