bone marrow function in immune system