Distributed nonconvex optimization: Algorithms and convergence analysis