Implemented both Buble Sort and Merge Sort