Added bubblesort, finding avg and slicing groups