Distance preserving maps of nest algebras