wrote triangle intersection
merged