Updated ransac solvers for better performance.

Change-Id: Ie7090beadb13bc6d214af3420b64d61804bb17ce