I tried to write a sorting algorythm with the tools already at hand (yes I know there are more simple ways of doing this). when i let the program run, it does exactly what it should and then ends like its supposed to. But upon validation it just runs and runs and then fails for 'infinite loop'. Can maybe someone explain to me why that is?