Given a line segment, construct a square that uses it as a side.