Calculating Double Integrals over General Regions