adding bubble sorting method