Note that the newline "\n" works faster than endl, because endl always causes a flush operation over flow data