Multidimensional Residues and Their Applications