fixed bucket sort for arrays that don't start with 0