Adding power UDF function