starting bubble sort implementation and analysis