sort eigenvalues, make binary files