@karlnapf calling it twice for min and max, calling it once to get all the eigenvalues would do too, but this takes lesser time!