Added ability to generate grid of uniformly distributed points