bring in final version of cython code from Herb
fix problem with yN dimensionality and get heli_opt running with it
clean up some indexing in DiscreteProperties