Removed unuseful modus
Moved shared functions to common header, so also Menger Sponge can use it