Impove lineloop sorting: iterates over all elements, looks for element that needs to be swap, swaps it, iterate again to find next one