added trim function
set default hdiq to "mean" with 5% trim