added check_alloc() and bmrm_ll_init()

check_alloc() checks for nullity after SG_CALLOC and bmrm_ll_init() can be used for initialization.