Optimization algorithms for solving computer vision problems