Branes and integrability in the N = 2 SUSY YM theory