Changed data type to pointer because older compilers are complaining about this.

The data type of the std::vector needs a copy constructor. Since class
MeshNodesAlongPolyline has const reference member functions older compilers
do not generate the copy constructor properly. Once we all have newer
compilers we can change it back.