Added ranking for "security".

If non-ranked data is given as input, the function now ranks it. The Uhat transformation is idempotent. So if ranked data is given, the output is not changed.