Implemented inject() function: generalization of add_mbr