Updated Sparse bundle adjustment to zero derivative matrices and missing points