Implemented the buffer for windows resizing

buffer_yield in buffer.c is not used for the moment and is buggy.

This implements the buffer for windows, used when the terminal is resized to redraw the pad. Some of the top lines might be lost (since the PAD is 1000 lines and the buffer has 1000 entries and there can sometimes be more than one entry per PAD line)