Speedup c median filter

By the defer `rendering` of sorted values we gaining speed on multiply
numbers insert.