maxeig function

Compute the largest eigenvalue and associated eigenvector of a matrix A using the power method