Added Line and VecFactory classes. Modified Vec classes to use pointeres instead of references. vec2dtest now manages poitners with auto_ptr.