added code to Array class and bubble_sort method