https://www.machinet.net/tutorial-eng/how-to-efficiently-erase-vectors-in-cpp