make pinhole ba functor handle ppx and ppy. Factorize BA code for the global SfM pipeline. #164