Fix a bug

Now the program runs correctly even if the column vectors of the
original are orthogonal. However, there still is a bug for the case
when all eigenvalues of the matrix have the same magnitude.