mad(v): only make one array copy and use it as scratch space.
mad(v): avoid checking for NaNs when taking the median of deviations.
Merge pull request #13 from StefanKarpinski/master

median absolute deviation performance improvement