Algorithms For Shaping a Particle Swarm With a Shared Control Input Using Boundary Interaction