Resolve const correctness errors
Add intersect function between ray and triangle