Fixes speicherproblem
Adds Square and refactors MagicSquare
Commenting, doxygen