exponentiation in ruby