DATAFU-2 UDFs for entropy and weighted sampling algorithms

https://issues.apache.org/jira/browse/DATAFU-2

Signed-off-by: Matt Hayes <mhayes@linkedin.com>