Added the Richardson method and changed the return parameters in the methods (final x_k, errors).