Adds mineig and maxeig methods

Find smallest and largest eigenvalues