A numerical investigation of the artificial compressibility method for the solution of the Navier-Stokes equations