A numerical method for non-linear flow about a submerged hydrofoil