source codes to calculate eigenvalues and eigenvectors in C/C++