Fixed bug with Simpon's Method

With the refactoring, the last term of Simpon's method was lost.  Remember that if you have `n` rectangles, you have `n+1` edges.