handled edge case of 1 integer in list
implemented bubble sort algorithm