public static boolean search(int[] A, int value, int index)
    {
       for(int i = 0; i< A.length; i++)
       {
           if(value == A[i])
           {
               return true;
           }
       }
       return false;
    }