Generation of variable order elements by superelement generation