factored out bucket handling to another helper function
finished mm_malloc