HistogramCreate: Correct ordering of inputs and outputs

Outputs first!
GlobalThresholdMethod: Implements Function now
Fixed GlobalThresholdTest (WIP)