Zaslat SMS: Nonlinear dynamics of piecewise constant systems and implementation of piecewise constant arguments