add test/diagonalize.cpp and change test/CMakeLists.txt to give current dir to mpirun