Numerical simulation of fish swimming