Ransac for lines