implemented bubble sort in coffeescript