Median Implementation (divideAndConquer/BruteForce)