update another solution

The new solution is simpler, at least far more efficient than solution1.
However, I still prefer the first one, since if the rectangle is
rotated, I could still know the approximate overlap area if my "Detect
Unit" is "extremely" small.