Hierarchical Control of Smart Particle Swarms