added generateMSD 2D example function for NGC