Multidimensional Residues and Ideal Membership