put peek and poke into bmem.c and bmem.h