added a seperate sorting method, altered the analysis a little. Further improvement, especially saving next neighbors to important particles is still necessary.