search: find median of list