The new program is actually easier, since there is no need to cater for rotated line segments. To obtain richer fractals, you could combine two different cutouts.
Algorithms of this sort are hungry for memory- if your (old) compiler sets a 64kb limit on arrays, you will not get much detail. And whatever next? Iteratively removing parts of a cube?