updated iter typenames to Iter, added declaration for bubble_sort for testing