Distributed Collision Free Trajectory Optimization For The Reconfiguration Of A Spacecraft Formation