Integrability of scattering amplitudes in N = 4 SUSY