Statistics for RKM model: Thermodynamics of Al-Cu-Ni system