still working on the bug. fixed required_size function to work properly for multiples of 8.
using powers of 2 as buckets. saving them as global variables. needs more work.