Final exam work. Implementation of template class BubbleSorter.