An Efficient Algorithm for the Approximate Median Selection Problem