Added JacobiMethod function (Ok)