add a new grid building method that use numpy.linespace