adding bubble sort approach