Performance improvement

Bubble sort algorithm over a double linked list has poor performance,
making the javaparser unusable in large projects.

This ugly refactor avoid the issue, reducing the complexity to O(n^2)