△ABC is inscribed in a circle such that vertices A and B lie on a diameter of the circle. If the length of the diameter of the circle is 13 and the length of chord BC is 5, find length AC.

The length AC is