added a multi shift solver for Qsq_nd