finished wrapping of c++ subspace object. Greatly improves performance of index generator, but still most time is spent in python functions so need to write a pure c++ implementation.