medev function

Median absolute deviation