Impletemented ray intersection in Trianle