How to find the Residues of a Complex Function