Outsourced bucket index calculation into func
Fix: Add hash.h header in ht/base.c