Solving the Longest Path Problem in Directed Acyclic Graphs Based on Amoeba Algorithm