int equal(double[] first, double[] second, int n)
{
// checks to n-dimensional vectors of objectives to see if they are identical
// returns 1 if they are, 0 otherwise
int i = 0;
do
{
if (first[i] != second[i])
return (0);
i++;
} while (i < n);
return (1);
}