add median absolute deviation (MAD)
upgrade to Visual Studio 2012