Removing carriage return from the end of input lines
Passing vectors by const reference, hopefully faster