mad function

Compute a robust median absolute deviation (MAD)