hw7 - sort buckets