add max2 method to DoubleSeq