Distributed Tracking Algorithms For Multi-Agent Systems To Solve The Leader-Follower Flocking Of Lagrange Networks And Dynamic Average Tracking Problem Of Second-Order Systems