adding bubble_sort under class Array
refactored code to operate on self
refactoring to work with test, before it returned nil, now it returns an array to check