Piecewise-constant Neural ODEs