I finished the first version of resize but unfortunatly I wasn't able to check it because of a lot of errors due to size_t type modification :(