full implementation of bubble sort, merge sort, and testing class