Triangles created by segments within a square