0 length buffer implementation
Buffer 0 case implemented, tests added.