Biophysics: Formation of swarms in nanosystems