Changed ORDMAX to maxSquares

Changed the name of the variable ORDMAX to maxSquares and initialized it by using the class constant MAX_SQUARES_OF_PRIMES. 
This was done in order to ease the understanding of what the variable is used for