Generates a Sierpinski carpet of a given magnitude