Added mbuffer.h and mbuffer.c