Arrange the numbers in square matrix in ascending order..