bubble sort function and enumerable methods rebuilt