Similarity analysis and exact solutions for a general discrete two-velocity model of Boltzmann equation