fix median: should average the two middle numbers

when list length is even