 				temp->beta=1000000000;
 				V[count]=temp;
 				count++;
-			}
-        }
+			}	
+		}
 		__syncthreads();
         //policz dla tych w V
 		if(thid<count)

					return NULL;
				else
					seco = firs->next;
				if(firs->parent != seco->parent) {
					firs->next = NULL;
				}
				this->first = seco;

		__syncthreads();
        //policz w gore
		if(thid == 0) {
		    minmax(ch);
		}
		//zwroc wynik (?)
	}
