Freeway traffic simulator based on the Nagel-Schreckenberg model