median O(log n) alg correct & fast!