The Schwarz function approach to the two-dimensional vortex dynamics