add ceres functor for Rig BA and small correction. #2