initial code for bucket sort