fix "point in triangle" algorithm; bugfix