Complete MagicSquare project. Single thread and Multi thread implementation