function [bestChrom] = guess(data, scoreC, errorC, kval)

[a, b] = size(data);
c = a + (2 * (b - 1));
d = 1000;

for i = 1 : d
	if (i == 1)
		guess = randint(1,c);
		bestGuess = fwpsabe(data, data, guess(1:a), guess(a+1:end), scoreC, errorC, kval);
		best(i , :) = guess;
	else
		guess = randint(1,c);
		guessVal = fwpsabe(data, data, guess(1:a), guess(a+1:end), scoreC, errorC, kval);
		if (bestGuess < guessVal)
			bestGuess = guessVal;
			best(i,:) = guess;
		else
			best(i,:) = best(i-1,:);
		end
	end
end

bestChrom = best(d,:);