title: Latex nested loop not displaying correctly
body: <p>Hi I'm new to latex I use here the Algorithmic package to write my pseudo code the problem I faced is that 'some text' is displayed correctly under the second loop but the 'return' statement which needs to be outside the first for loop isn't showing correctly also it does not mark the end of each loop (the vertical tic is missing), the execution result is shown in the image:
  <a href="https://i.stack.imgur.com/LfgtU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LfgtU.png" alt="enter image description here" /></a></p>
  <pre><code>\documentclass{article}
  \usepackage[utf8,linesnumbered,ruled,vlined]{algorithm2e}
  \usepackage {algpseudocode}
  \usepackage{algorithmicx}
  \usepackage{algcompatible}
  
  \begin{document}
  \begin{algorithm}
  \ContinuedFloat
  
  \caption{My algorithm}
  \textbf{Input:} solution,bound, data\_matrix, vehicle\_capacity, demand\_data,k\_max,operations\_data, move\_type,tenure, max\_number\_of\_moves,max\_iter,non\_improvement\_maxiter,itermax,epsilon\\
  \textbf{Output:} $best$ $solution$ \\[0.1in]
  
  routes = extract routes from \textbf{solution}\\
  oldfitness = fitness(\textbf{solution})\\
  
  ls\_move\_type = inversion\\
  best\_solution = routes\\[0.1in]
  
  \For{0 \leq i \leq itermax}{
      new\_routes = [ ]\\
      desc = 'normal route'\\
      
      
      \For{route \textbf{in} routes}{
          n=length(route)\\
          comb = int($\frac{n!}{(n-2)!}$)\\
          \If{n \geq 4}{
              tabu\_list\_tenure = $\frac{comb}{5}$\\
              ls\_maxiteration = 50 \\
              ls\_move\_type = 'inversion'\\
          }
          \If{3 \leq n \leq 4}{
              tabu\_list_tenure = $\frac{comb}{4}$ \\
              ls\_maxiteration = 25\\
              ls\_move\_type = 'relocation'\\
          }
         \Else{
           append \textbf{route} to \textbf{new\_routes}\\
           desc = 'short route'\\
          }\\[0.1in]
          }
          
          
      some action
      
          
          
          
      }
  
  
  
  return
  
  
  
  
  
  
  \end{algorithm}
  
  \end{document}
  </code></pre>