The numerical simulation of nonlinear gravity waves in three dimensions using a higher order panel method