Edited FindTheMedian solution