Non-linear magnetization dynamics in ferromagnetic nanoelements excited by the spin-polarized dc-current is one of the most intensively studied phenomena in solid state magnetism. Despite immense efforts, synchronization of oscillations induced in several such nanoelements (spin-torque driven nanooscillators, or STNO) still represents a major challenge both from the fundamental and technological points of view. In this paper we propose a system where synchronization of any number of STNOs, represented by magnetization vortices inside squared nanoelements, can be easily achieved. Using full-scale micromagnetic simulations we show that synchronization of these STNOs is extremely dynamically stable due to their very large coupling energy provided by the magnetodipolar interaction. Finally, we demonstrate that our concept allows robust synchronization of an arbitrary number of STNOs (arranged either as a 1D chain or as a 2D array), even when current supplying nanocontacts have a broad size distribution.