A Centralized Algorithm with Collision Avoidance for Trajectory Planning in Preflight Stage. (7th January 2021)