First try with triangle intersection - very VERY ugly code!
Fixed bug in triangle intersection.

Beta and gamma have to be > 0, not only the sum!