* update memory_apply_patch for memory block create and delete * update docstring * update docstring * fix label * working