path: First check npts, then take path
path: Use multidimensional indexing
path: Initialize path list