modified ex4.c
save eigenvector