Cyclic optimization algorithms for simultaneous structure and motion recovery in computer vision