Fast triangle detection working. Naive version still has errors.