private static void Quicksortusinglastpivot(int l, int k) {
		// TODO Auto-generated method stub
		if(l==k){
			return;
		}
		if (k>l){
		int i=l+1; // startelement
		int j=l+1; // 
		int temp;
		temp = array[l];
		array[l] = array[k];
		array[k]=temp;
		
		int pivot = 0;
			pivot = array[l];	
		
			
			for(j=l+1;j<k+1;j++){
				int vella = array[j];
				counter++;
				if(array[j]<pivot){
					
					temp = array[i];
					array[i] = array[j];
					array[j]=temp;
					
					i++;
					
					
					
					
				}
				
					
					
				
			}
			i--;
		
			temp = array[i];
			array[i] = array[l];
			array[l] = temp;
			
			Quicksortusinglastpivot(l,i-1);
			Quicksortusinglastpivot(i+1,k);
		return;
			
		}else{
			return;
		}
		
	}