GeoLib Triangle bug fix

Marc discovered a bug concerning the check if a point is in triangle (already in OGS-5).
This PR fixes this bug. A second part of this PR improves code reuse concerning the calculation of the area of a triangle.