Stochastic Bundle Adjustment for Efficient and Scalable 3D Reconstruction