Implemented dynamic data buffer, buffer.c

Signed-off-by: Christian Gunderman <christian@gundermobile.cwru.edu>