use median method to calculate elevator best park floor