Implemented first triangle intersection detection