nsd function

Net Squared Displacement