Adding LEAST UDF

Dual of GREATEST(a,b,c)..