Numerical solutions of the Boltzmann equation: comparison of different algorithms