sorting: bubble sort
sorting: bubblesort templated comparison function