Square inscribed in a triangle