Optimized Ransac