Differentially Private M-Estimators