started writing the bucket sort algorithm to place in each nbody in bucket