add function to calculate eigen-vectors of symmetric matrices