n=3 dim a(n+1) '+1 needed due to bug in LB that checks loop condition ' until (i=0) or (a(i)0 then j=i+1 while a(j)