A time discretization for the pressureless gas dynamics equations