Add aMid computation for median.