using move semantics to move out vector of lines