the index array for sorting eigenvalues in eiegnvalues_arpack is initalized otherwise it leads to sig fault