Statistical Mechanical Analysis of Binding of Acridines to DNA