Add aMid computation for median.
Merge branch 'master' into gh-pages