A numerical method for calculating the initial flow past a cylinder in a viscous fluid