A Shooting Formulation of Deep Learning