A Robust Changepoint Detection Method