New class BLEBuffer to handle input and output buffer