Finished median finder