Accelerating SfM-based Pose Estimation with Dominating Set