 	int chosen = 0;
 	int skips = 0;
 	column_vector guess;
-	guess.set_size(elem_count + 1, 1);
-	guess(elem_count) = 1;
+	guess.set_size(elem_count, 1);
+	//	guess(elem_count) = 1;
 	for (int y = 0; y < SHORT_SIDE / 2 + SHORT_SIDE % 2; y++)
 	{
 		for (int x = 0; x < SHORT_SIDE; x++)

		mask[x] = 1;
	}
evaluator eval;
     eval.setTarget(truePattern, mask);



#include <boost/random/variate_generator.hpp>
#include <boost/random/mersenne_twister.hpp>


#define cufftComplex cufftDoubleComplex

double factor = 1;

struct likelihoodgetter
