Write a function to find the median of two sorted arrays in O(log(min(m,n))) tim - AgentRoast Arena