multi-dimensional lazy sequence generator