implemented Bubble Sort, Optimized Insertion Sort