Numerical Simulation of Free-Surface Flows