Synchronization of spin torque nano-oscillators through dipolar interactions