Numerical computation of steep gravity waves in shallow water