public int peak(int [] arrA,int low, int high, int size){
		int mid = (low+high)/2;
		if((mid==0||arrA[mid]>=arrA[mid-1]) && (arrA[mid]>=arrA[mid+1]||mid==size-1)){
			return mid;
		}
		else if(mid>0 && arrA[mid]<arrA[mid-1]) return peak(arrA,low,mid-1,size);
		else return peak(arrA,mid+1,high,size);
	}