public void noseCenter()
    {
        float d=inner2.x-inner1.x;
        d=d/2;
        int n1 = list.indexOf(inner1);
        int n2=list.indexOf(inner2);
        if(n2<n1)
        {
            n2=n1;
            n1=list.indexOf(inner2);
            
        }
        ArrayList l = new ArrayList();
        float q;
        if(inner1.y>inner2.y)
            q=inner1.y;
        else
            q=inner2.y;
        System.out.println("q = "+q);
        for(int i=0;i<list.size();i++)
        {
            Point t = (Point)list.get(i);
            if(t.x>(inner1.x + d-1) && t.x<(inner2.x-d+1) && t.y<(d1-30) && t.y>q)
            {
                l.add(t);
            }
        }        
        float max=-100000;
        Point cen=null;
        System.out.println(l.size());
        //Point a = (Point)l.get(0);
        for(int i=0;i<l.size();i++)
        {
            Point t=(Point) l.get(i);
            //System.out.println("done");
            if(t.z>max  && Math.abs(t.x-d) >0.5)
            {
                //System.out.println("Entered IF");
                max=t.z;
                cen=t;
            }
        }
        
        System.out.println(cen.x+" "+cen.y+" "+cen.z);
        System.out.println(list.indexOf(cen)); 
        root=cen;
    }