Eigenvalue solver for sparse matrices in C++ using ARPACK