Refactor memory management in main.cpp
I've added const to variables when it was possible. Also I tried to avoid calling in repeat the same method (append) when was possible to fill container in one step.
Also some references and
std::move. I've changed loop with read line to read All.