Stupid median realisation