implement shifted inverse power method