pmedian function

Pseudomedian