flook can now find triangles in linear time.