Advanced Distributed Optimization And Control Algorithms: Theory And Applications