Improve RANSAC by adding new dynamic stopping criterion