A quick implementation of bucket sort