Commit implementation of bubble sort.