Comparison of algorithms for solving the least squares problem with applications in computed tomography