add reallocate function for easy_ring_buffer and do some test