Robust regression with random sample consensus