Computing the Maximal Eigenvalue and Eigenvector of a Nonnegative Irreducible Matrix