Function partition CLASS "4m"
Function partition CLASS "4m+2"
Function partition CLASS "odd"
A quite stupid way to achieve a magic_cube
Functiuon partition CLASS "odd" v2
Function partition CLASS "4m+2" v2
It seems a better way

NEW: Using calloc()