Add section and code for curve area

@behdad

I wasn't 100% sure if I was putting my code in the right files, but this seems to work locally for me.
Actually this is checking that t is not very close to 0 or 1. Sometimes an intersection is found very close to the beginning or end of the curve, which we want to ignore.