Use multiplication instead of exponentiation to impliment square without compiler warnings