Modify the constructor of Buffer

Add a parameter to indicate the initial memory block size