part 2 not working, added print statements in getbucketindex