Completed solution to 94 and added isSquare function for fast checks to see if a number is square