Coffeescript implementation of bubble sort.