Distribution free M-estimation