Numerical simulation of breaking waves