public void addNum(int numb){
        Integer left = maxLH.peek();
        Integer right = minRH.peek();
        if(left==null)
            maxLH.offer(numb);
        else{
            Integer num = numb;
            int ls = maxLH.size();
            int rs = minRH.size();
            int ln = maxLH.peek();
            Integer rn = minRH.peek();
            if(rn==null || num>rn){
                minRH.poll();
                minRH.offer(num);
                num=rn;
            }
            if(num!=null && num<ln){
                maxLH.poll();
                maxLH.offer(num);
                num=ln;

            }
            if (num!=null) {
                if (ls == rs)
                    maxLH.offer(num);
                else
                    minRH.offer(num);
            }

        }
    }